#include <stdio.h>
#include <stdlib.h>

int main()
{
    double a, b, c, t;
    printf("请输入您想输入比较的三个数：");
    if (scanf("%lf,%lf,%lf", &a, &b, &c)!=3) {
        printf("输入错误。\n");
        return 1;
    }
    if (a > b) {
        t = a;
        a = b;
        b = t;
    }
    if (a > c) {
        t = a;
        a = c;
        c = t;
    }
    if (b > c) {
        t = b;
        b = c;
        c = t;
    }
    printf("三个数从小到大为：%f,%f,%f", a, b, c);
    return 0;
}